<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" type="text/css" href="./main.css" />
    </head>
    <body>
        <!--[if lt IE 7]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
        <span id="ajaxButton" style="cursor: pointer; text-decoration: underline">make a request</span>
        <button onclick="buttontest">button test</button>
        <input type="button" id="myButton" value="Click Me" />
        
        <svg width="200px" height="200px">
            <g transform="translate(400, 400)" id="myImage">
                <rect id="mySquare" x="-10" y="-10" width="20" height="20" color="blue" />
            </g>
        </svg>
        <input id="speed" type="text" value="10" />
        <button id="zoom" onclick="startAnimation();">Start</button>

        <table>
            <tr>
                <th>Fruit</th>
                <th>Quantity</th>
                <th>Price</th>
            </tr>
            <tr>
                <td>Apples</td>
                <td>48</td>
                <td>$0.29</td>
            </tr>
            <tr>
                <td>Apples</td>
                <td>48</td>
                <td>$0.29</td>
            </tr>
            <tr>
                <td>Apples</td>
                <td>48</td>
                <td>$0.29</td>
            </tr>
        </table>

        <p>Hello</p>

        <div>
            <h4>International News</h4>
            <acticle>
                <h4 class="headline">New Developments!</h4>
                <aside>
                    <h4>Impact On Markets</h4>
                </aside>
            </acticle>
        </div>

        <script src="./xhr.js"></script>
        <script>
           function buttontest() {
               console.log(this);
           }
           document.addEventListener('DOMContentLoaded', function() {
               var elButton = document.getElementById("myButton");
               elButton.addEventListener("click", function() {
                   console.log(this);
                   console.log(this.type);
                   console.log(this.id);
               }, false)
           }, false);

            var customer = function() {
                var name = "Contoso";

                return {
                    getName: function() {

                    },
                    setName: function(newName) {
                        name = newName
                    }
                };
            }();

            console.log(customer.name)
        </script>

        <script>
            var squareShape;
            var myTimer;

            function startAnimation() {
                squareShape = document.getElementById("mySquare");
                squareShape.currentTheta = 0;
                console.log(squareShape.currentTheta);
                console.log(speed.value);
                myTimer = setInterval(animateImage, speed.value);

                animateImage();
            }

            function animateImage() {
                squareShape.setAttribute('rotate', "angle("+squareShape.currentTheta + ")");
                squareShape.currentTheta += 0.1;
            }
        </script>
    </body>
</html>